package com.daon.dao;

import com.daon.pojo.SysUser;
import com.daon.vo.SysUserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SysUserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

    int updateIpByPrimary(SysUser record);

    int checkUsername(String username);

    SysUser selectLogin(@Param("username") String username, @Param("password") String password);

    List<SysUserVo> selectUserByConditions(@Param("searchUser") String searchUser);

    SysUserVo selectUserDetailByUserId(@Param("userId") Integer userId);
}